package com.ymh.spring.learn.model.singleton;


public class Demo1 {

	public static void main(String[] args) {
		 StringBuffer sb = new StringBuffer("12345");
		 sb.reverse();
		
		 String str = sb.toString();
		 for (int i = 0; i < str.length(); i++) {
		 System.out.print(str.charAt(i));
		 }

		String ss = "abc";
		for (int i = 0; i < ss.length(); i++) {
			System.out.println(ss.charAt(i));
		}

	}

}
